<?xml version="1.0"?>

<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xalan="http://xml.apache.org/xalan"
	xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="java">

<xsl:template name="DrawPage">
	<xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">]]></xsl:text>
<xsl:text>
</xsl:text>
	<html>
	<head>
	<title>CV: <xsl:value-of select="name"/> (<xsl:value-of select="email"/>)</title>
	<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
	<META NAME="author" CONTENT="Yuriy Tumakha"/>
	<META NAME="description" CONTENT="CV: Yuriy Tumakha (Java developer)"/>
	<META NAME="keywords" CONTENT="Programmer, Developer, Java, XML, Job, Work, CV, Tumakha, Тумаха"/>
	<meta name="verify-v1" content="bQogNUdtzqdkG6ku2rfm6nVvG9L6JN3HvPNo+EzPZ6Y=" />
	<style><![CDATA[
	BODY {
		font-size: 12px;
		font-family: Arial, Verdana, Helvetica, sans-serif;
	}
	TD {
		font-size: 12px;
		font-family: Arial, Verdana, Helvetica, sans-serif;
	}
	A { 
		text-decoration: none;
		color: #0033cc;
	}
	A:hover {
		text-decoration: underline;
		color: #ff9900;
	}
	.param {
		color: #0000A0;
		font-weight: bold;
	}
	.bold {
		font-size: 16px;
		font-weight: bold;
	}
	table.menu {
	        background-color: #0000A0;
	}
	.menu td {
		color: #0000A0;
        background-color: #D8D8D8;
	}
	]]></style>
	</head>
	<body leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0" topmargin="10" bottommargin="10" text="#000000" bgcolor="#D8D8D8">
	<br/>
	<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>
		<td width="30%"> </td>
		<td width="*">
			<table width="728" bgcolor="#FFFFFF" align="center" cellpadding="18" cellspacing="0" border="0">
			    <tr>
				<td>
					<table width="100%" border="0">
						<xsl:apply-templates/>
					</table>
				</td>
			    </tr>
			</table>
		</td>
		<td width="30%" valign="top" align="center"><xsl:call-template name="DrawMenu"/></td>
	</tr></table>
	<br/>
	<div align="center"><xsl:text disable-output-escaping="yes">&amp;copy;</xsl:text> Yuriy Tumakha, 
	<xsl:value-of select="java:format(java:java.text.SimpleDateFormat.new('yyyy'), java:java.util.Date.new())"/>.</div>
	<div align="center" width="100%" style="padding-top:10px;">
		<xsl:call-template name="google"/>
	</div>
	</body>
	</html>
</xsl:template>

<xsl:template name="DrawRow">
  	<xsl:param name="labelKey"/>
  	<xsl:param name="label">
		<xsl:call-template name="i18n"><xsl:with-param name="key" select="$labelKey"/></xsl:call-template>
  	</xsl:param>
  	<xsl:param name="value"/>
  	<xsl:param name="body"/>
	<tr>
        <td class="param" valign="top"><xsl:value-of select="$label"/>:</td>
        <td>
        	<xsl:if test="$labelKey = 'name'">
	        	<xsl:attribute name="class">bold</xsl:attribute>
	        </xsl:if>
	        <xsl:choose>
	        	<xsl:when test="$labelKey = 'email'">
		  			<a>
		  				<xsl:attribute name="href">mailto:<xsl:value-of select="$value"/>?subject=job</xsl:attribute>
		  				<xsl:value-of select="$value"/>
		  			</a>
	  			</xsl:when>
	        	<xsl:when test="$labelKey = 'icq-number'">
	  				<xsl:value-of select="$value"/><xsl:text> </xsl:text>
					<img width="18" height="18" border="0">
						<xsl:attribute name="src">http://web.icq.com/whitepages/online?icq=<xsl:value-of select="$value"/>&amp;img=5</xsl:attribute>
					</img>
	  			</xsl:when>
	        	<xsl:when test="$labelKey = 'web-site'">
		  			<a>
		  				<xsl:attribute name="href"><xsl:value-of select="$value"/></xsl:attribute>
		  				<xsl:value-of select="$value"/>
		  			</a>
	  			</xsl:when>
	  			<xsl:otherwise>
		        	<xsl:value-of select="$value"/>
	  			</xsl:otherwise>
  			</xsl:choose>
  			<xsl:copy-of select="$body"/>
        </td>
	</tr>
</xsl:template>

<xsl:template name="DrawRightColumn">
	<xsl:param name="body"/>
	<tr>
		<td> </td>
		<td>
			<xsl:copy-of select="$body"/>
		</td>
	</tr>
</xsl:template>

<xsl:template name="DrawGroup">
  	<xsl:param name="labelKey"/>
	<tr>
	     <td class="param" valign="top" colspan="2">
		  	<fieldset>
		  		<legend><xsl:call-template name="i18n"><xsl:with-param name="key" select="$labelKey"/></xsl:call-template></legend>
		  	</fieldset>
		 </td>
	</tr>
	<xsl:apply-templates/>
</xsl:template>

<xsl:template name="DrawMenu">
	<table class="menu" border="0" cellspacing="1" cellpadding="4" align="center">
	<tr><td colspan="2" align="center"><xsl:call-template name="i18n"><xsl:with-param name="key" select="'languages'"/></xsl:call-template></td></tr>
	<tr>
		<td>
			<xsl:choose>
				<xsl:when test="$lang != 'en'">
					<a href="resume_en.html">
						<xsl:attribute name="title"><xsl:call-template name="i18n"><xsl:with-param name="key" select="'language.en'"/></xsl:call-template></xsl:attribute>
						<img border="0" src="img/en.gif" width="32" height="18" alt=""/>
					</a>
				</xsl:when>
				<xsl:otherwise>
					<img border="0" src="img/en.gif" width="32" height="18" alt=""/>
				</xsl:otherwise>
			</xsl:choose>
		</td>
		<td>
			<xsl:choose>
				<xsl:when test="$lang != 'ru'">
					<a href="resume_ru.html">
						<xsl:attribute name="title"><xsl:call-template name="i18n"><xsl:with-param name="key" select="'language.ru'"/></xsl:call-template></xsl:attribute>
						<img border="0" src="img/ru.gif" width="31" height="20" alt=""/>
					</a>
				</xsl:when>
				<xsl:otherwise>
					<img border="0" src="img/ru.gif" width="31" height="20" alt=""/>
				</xsl:otherwise>
			</xsl:choose>
		</td>
	</tr>
	<tr><td colspan="2" align="center"><xsl:call-template name="i18n"><xsl:with-param name="key" select="'download'"/></xsl:call-template></td></tr>
	<tr>
		<td>
			<a title="PDF"><xsl:attribute name="href">resume_<xsl:value-of select="$lang"/>.pdf</xsl:attribute><img border="0" src="img/pdf.gif" width="32" height="31" alt="PDF"/></a>
		</td>
		<td>
			<a title="RTF"><xsl:attribute name="href">resume_<xsl:value-of select="$lang"/>.rtf</xsl:attribute><img border="0" src="img/rtf.gif" width="35" height="34" alt="RTF"/></a>
		</td>
	</tr>
	</table>
	<br/>
	<center><xsl:call-template name="counter"/></center>
</xsl:template>

<xsl:template name="counter">
<xsl:text disable-output-escaping="yes">
<![CDATA[
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-6122270-1");
pageTracker._trackPageview();
</script>


<!-- Begin webstats4U code -->
<!-- Title: CV: Yuriy V. Tumakha -->
<!-- URL: http://tumakha.org.ua/ -->
<script language="JavaScript" type="text/javascript" src="http://m1.webstats4u.com/m.js"></script>
<script language="JavaScript" type="text/javascript">
<!--
  webstats4u("AD8wfAb/mpJevJ1KRkD/T9/4VN9g", 0);
// -->
</script>
<noscript>
<a target="_blank" href="http://www.webstats4u.com/stats?AD8wfAb/mpJevJ1KRkD/T9/4VN9g">
<img src="http://m1.webstats4u.com/n?id=AD8wfAb/mpJevJ1KRkD/T9/4VN9g" border="0" width="18" height="18" alt="Webstats4U - Free web site statistics Personal homepage website counter">
</a><br>
<a target="_blank" href="http://www.webstats4u.com/">Free counter</a>
</noscript>
<!-- End webstats4U code -->
]]>
</xsl:text>
</xsl:template>

<xsl:template name="google">
<xsl:text disable-output-escaping="yes">
<![CDATA[
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 728x90 -->
<ins class="adsbygoogle"
     style="display:inline-block;width:728px;height:90px"
     data-ad-client="ca-pub-4533662938999848"
     data-ad-slot="2064585274"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
]]>
</xsl:text>
</xsl:template>

</xsl:stylesheet>